package com.ryan.mdp.api.normal;

import java.util.Date;

import com.ryan.mdp.callback.MdpCallback;
import com.ryan.mdp.dto.DemoDto;

public interface DemoMdpService {

    // @MdpMethod(cache = true, cacheTtl = 1000)
    public int echo(int num);

    public void echo(String name);

    public byte[] echoBinary(byte[] binary);

    public void echo(String name, MdpCallback callback);

    public String echoResponse(String name);

    public String echoException(String name) throws Exception;

    public DemoDto echoDto(int a, Date now, DemoDto dto);

    public DemoDto echoDto(Date now, DemoDto dto);

}
